package com.cloud.entity;

import lombok.Data;
import lombok.ToString;

import java.util.List;

/**
 * 分页实体
 *
 * @author .
 * created in 2020/1/10 20:44
 */

@Data
@ToString
public class PageInfo<T> {

    private Integer page;
    private Integer limit;
    private Integer count;
    private List<T> data;

    public PageInfo() {}

    public PageInfo(Integer page, Integer limit) {
        this.page = page;
        this.limit = limit;
    }

}
